package com.zhangliuliu.bean;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.time.LocalDate;
import java.time.LocalDateTime;

@TableName("log")
public class LogBean {

    @TableId(value = "pk_logId",type = IdType.AUTO)
    private int logId;
    //用户在xx时间登录了xx系统
    @TableField("log_info")
    private String logInfo;
    //用户登陆的时间默认是当前时间
    @TableField("log_date")
    private LocalDate localDate =LocalDate.now();

    public LogBean() {
    }

    public LogBean(String logInfo) {
        this.logInfo = logInfo;

    }



    public int getLogId() {
        return logId;
    }

    public void setLogId(int logId) {
        this.logId = logId;
    }

    public String getLogInfo() {
        return logInfo;
    }

    public void setLogInfo(String logInfo) {
        this.logInfo = logInfo;
    }

    public LocalDate getLocalDate() {
        return localDate;
    }

    public void setLocalDate(LocalDate localDate) {
        this.localDate = localDate;
    }

    @Override
    public String toString() {
        return "LogBean{" +
                "logId=" + logId +
                ", logInfo='" + logInfo + '\'' +
                ", localDate=" + localDate +
                '}';
    }
}
